package project9;

public class Main {
    public static void main(String[] args) {
        Circle a=new Circle(1);
        Circle b=new Circle(10);
        String format= String.format("%.2f",a.C());
        String format1= String.format("%.2f",a.S());
        String format2= String.format("%.2f",b.C());
        String format3= String.format("%.2f",b.S());
        System.out.println("周长为："+Double.parseDouble(format)+" 面积为："+Double.parseDouble(format1));
        System.out.println("周长为："+Double.parseDouble(format2)+" 面积为："+Double.parseDouble(format3));
    }
}
